﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TpData.Layer;

namespace TpData.Manager {
    public class CommonDataManager {

        public static List<string> LoadMitarbeiter() {
            using(CommonDataLayer dl = CreateCommonDataLayer()) {
                return dl.LoadMitarbeiter();
            }
        }

        private static CommonDataLayer CreateCommonDataLayer() {
            return (DataManager.CreateDataLayer(typeof(CommonDataLayer)) as CommonDataLayer);
        }
    }
}
